import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import Pinia from "./store";
import * as echarts from "echarts";
import VChart from "vue-echarts";

// import ElementPlus from "element-plus";
// import "element-plus/dist/index.css"; //element-plus
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);

//注册element-plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(Pinia);
app.use(router);
//引入VChart
app.component("VChart", VChart);
// app.use(ElementPlus);
app.mount("#app");
